Optimal. Leaf size=124 \[ -\frac {\tan (e+f x) \sqrt {a \cos ^2(e+f x)}}{f}-\frac {\csc ^5(e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{5 f}+\frac {\csc ^3(e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{f}-\frac {3 \csc (e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3176, 3207, 2590, 270} \[ -\frac {\tan (e+f x) \sqrt {a \cos ^2(e+f x)}}{f}-\frac {\csc ^5(e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{5 f}+\frac {\csc ^3(e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{f}-\frac {3 \csc (e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 2590
Rule 3176
Rule 3207
Rubi steps
\begin {align*} \int \cot ^6(e+f x) \sqrt {a-a \sin ^2(e+f x)} \, dx &=\int \sqrt {a \cos ^2(e+f x)} \cot ^6(e+f x) \, dx\\ &=\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \cos (e+f x) \cot ^6(e+f x) \, dx\\ &=-\frac {\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname {Subst}\left (\int \frac {\left (1-x^2\right )^3}{x^6} \, dx,x,-\sin (e+f x)\right )}{f}\\ &=-\frac {\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname {Subst}\left (\int \left (-1+\frac {1}{x^6}-\frac {3}{x^4}+\frac {3}{x^2}\right ) \, dx,x,-\sin (e+f x)\right )}{f}\\ &=-\frac {3 \sqrt {a \cos ^2(e+f x)} \csc (e+f x) \sec (e+f x)}{f}+\frac {\sqrt {a \cos ^2(e+f x)} \csc ^3(e+f x) \sec (e+f x)}{f}-\frac {\sqrt {a \cos ^2(e+f x)} \csc ^5(e+f x) \sec (e+f x)}{5 f}-\frac {\sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 67, normalized size = 0.54 \[ \frac {(235 \cos (2 (e+f x))-90 \cos (4 (e+f x))+5 \cos (6 (e+f x))-182) \csc ^5(e+f x) \sec (e+f x) \sqrt {a \cos ^2(e+f x)}}{160 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 86, normalized size = 0.69 \[ \frac {{\left (5 \, \cos \left (f x + e\right )^{6} - 30 \, \cos \left (f x + e\right )^{4} + 40 \, \cos \left (f x + e\right )^{2} - 16\right )} \sqrt {a \cos \left (f x + e\right )^{2}}}{5 \, {\left (f \cos \left (f x + e\right )^{5} - 2 \, f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.10, size = 65, normalized size = 0.52 \[ -\frac {\cos \left (f x +e \right ) a \left (5 \left (\sin ^{6}\left (f x +e \right )\right )+15 \left (\sin ^{4}\left (f x +e \right )\right )-5 \left (\sin ^{2}\left (f x +e \right )\right )+1\right )}{5 \sin \left (f x +e \right )^{5} \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 68, normalized size = 0.55 \[ -\frac {16 \, \sqrt {a} \tan \left (f x + e\right )^{6} + 8 \, \sqrt {a} \tan \left (f x + e\right )^{4} - 2 \, \sqrt {a} \tan \left (f x + e\right )^{2} + \sqrt {a}}{5 \, \sqrt {\tan \left (f x + e\right )^{2} + 1} f \tan \left (f x + e\right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 26.64, size = 555, normalized size = 4.48 \[ -\frac {\left (\frac {1{}\mathrm {i}}{f}-\frac {{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}}{f}\right )\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}}{{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,12{}\mathrm {i}}{f\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,16{}\mathrm {i}}{f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^2\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,144{}\mathrm {i}}{5\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^3\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,128{}\mathrm {i}}{5\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^4\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,64{}\mathrm {i}}{5\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^5\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )} \cot ^{6}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________